Index: includes/common.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/common.inc,v retrieving revision 1.750 diff -u -F^f -r1.750 common.inc --- includes/common.inc 10 Jan 2008 23:14:58 -0000 1.750 +++ includes/common.inc 13 Jan 2008 11:49:27 -0000 @@ -1950,7 +1950,7 @@ function drupal_clear_css_cache() { * far for $scope is returned. If the first three parameters are NULL, * an array with all scopes is returned. */ -function drupal_add_js($data = NULL, $type = 'module', $scope = 'header', $defer = FALSE, $cache = TRUE, $preprocess = TRUE) { +function drupal_add_js($data = NULL, $type = 'module', $scope = 'footer', $defer = FALSE, $cache = TRUE, $preprocess = TRUE) { static $javascript = array(); if (isset($data)) { @@ -1958,7 +1958,7 @@ function drupal_add_js($data = NULL, $ty // Add jquery.js and drupal.js, as well as the basePath setting, the // first time a Javascript file is added. if (empty($javascript)) { - $javascript['header'] = array( + $javascript['footer'] = array( 'core' => array( 'misc/jquery.js' => array('cache' => TRUE, 'defer' => FALSE, 'preprocess' => TRUE), 'misc/drupal.js' => array('cache' => TRUE, 'defer' => FALSE, 'preprocess' => TRUE),